package com.bmth.alise.utils.conf;

import java.io.InputStream;
import java.util.Properties;

public class Configuration {

	private static Properties p;

	public static void init() {
		p = new Properties();
		try {
			InputStream ins = Thread.currentThread().getContextClassLoader()
					.getResourceAsStream("application.properties");
			p.load(ins);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static String getProperty(String key) {
		return p.getProperty(key);
	}
}
